//
//  Bundle+Extensions.swift
//  weibo
//
//  Created by Fly on 2017/12/12.
//  Copyright © 2017年 Fly. All rights reserved.
//

import Foundation

extension Bundle {
    
    // MARK: 计算型属性
    /// 获取工程名
    var namespace: String {
        return infoDictionary?["CFBundleName"] as? String ?? ""
    }
    
//    func namespace() -> String {
////       return Bundle.main.infoDictionary?["CFBundleName"] as? String ?? ""
//        return infoDictionary?["CFBundleName"] as? String ?? ""
//    }

}
